package com.trembear.ucarfeignclient.controller;

import com.trembear.ucarfeignclient.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Junwei.Xiong
 * @description:
 * @create 2018-07-10 10:10
 */
@RestController
@RequestMapping("/feign")
public class FeignController {
    @Autowired
    CarService carService;
    @GetMapping("/volvo")
    public String getCar(){
        return carService.getCar();
    }
}
